package com.tcpengine.client;
import javax.swing.JTextArea;

public class LogView extends JTextArea {
	private static final long serialVersionUID = 1L;

	public LogView() {
		setLineWrap(false);		// 不自动换行
	}
	
	public void println(String strText) {
		append(strText + '\n');
		setCaretPosition(getText().length()); 
	}
}
